package com.kucai.yifaqapp.ui.fragment.gameFragment;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.kucai.yifaqapp.R;


/**
 * Created by admin on 2018/11/29.
 * 这是分享的diolog
 */

public class MsgDetaiDialog extends Activity {
    private TextView mcontent;
    private Button cancle;
    private Button conform;

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.pop_msg_detai);
        String content = getIntent().getStringExtra("content");
        getWindow().setLayout(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);
        MsgDetaiDialog.this.getWindow().setFlags(
                WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
        mcontent = findViewById(R.id.content);
        mcontent.setText(content);
        cancle = findViewById(R.id.btn_neg);
        conform = findViewById(R.id.btn_pos);
        cancle.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        conform.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
